package com.znjc.common.constant;

import java.util.*;

public class DeviceConstants {
    //数据库表面后缀
    public static final String TABLE_NAME = "device_data_";
    public static final String COLUMN_NAME = "_unit";
    //下发采集信息通信
    public static final String VUE_MSG_CLINET_9999 = "9999";
    /**
     * 实时数据刷新9998
     */
    public static final String VUE_MSG_CLINET_9998 = "9998";
    /**
     * 手动测试
     */
    public static final String VUE_MSG_CLINET_9997 = "9997";
    /**
     * 串口采集日志
     */
    public static final String VUE_MSG_CLINET_9996 = "9996";

    //运算符
    public static final String OPERATOR_UNIT = "operator_unit";
    //数据类别
    public static final String DATA_TYPE = "data_type";
    //数据单位
    public static final String DATA_UNIT = "data_unit";
    //阈值运算规则
    public static final String THRESHOLD_OPERATOR = "threshold_operator";
    //是否单独解析（高位，低位）
    public static final String IS_SINGLE = "is_single";
    //单独解析运算规则 0全部运算 1高位 2低位
    public static final String OPERATOR_TYPE = "operator_type";
    //是否高低位切换0否1是
    public static final String IS_HIGH_LOW = "is_high_low";
    //接线端子
    public static final String DEVICE_JIEXIANDUANZI = "device_jiexianduanzi";
    //拨码器
    public static final String DEVICE_BOMAQI = "device_bomaqi";
    //TLV
    public static final String DEVICE_TLV = "device_tlv";
    //测量设备类型
    public static final String DEVICE_TYPE = "device_type";
    //设备类型
    public static final String DEVICE_GENRE = "device_genre";
    /**
     * 通道编码
     */
    public static final String DEVICE_Z_C = "device_z_c";
    //地址位
    public static final String DEVICE_BITMAP = "device_bitmap";
    //读硬件信息标记
    public static final String DEVICE_COMMAND_NUMBER = "11";
    //设备值缓存前缀
    public static final String REDIS_DEVICE_VALUE = "device_value_";
    public static final String REDIS_DEVICE_UNIT = "device_unit_";
    public static final String REDIS_DEVICE_TS = "device_ts_";
    public static final String POINT_NAME_DZ = "电阻";
    public static final String POINT_NAME_DZL = "电阻率";
    public static final String POINT_NAME_DY = "电压";
    public static final String POINT_NAME_DL = "电流";
    public static final String POINT_NAME_PL = "频率";
    public static final String NBQ = "nbqData";
    public static final String CX = "cxData";
    public static final String HL = "hlData";
    public static final String TDZHB ="tdzhbData";
    public static final String GGD ="dtggd";


    public static final List<String> TABLE_TITLE_DZ = new ArrayList<>(Arrays.asList("电阻"));
    public static final List<String> TABLE_TITLE_DZL = new ArrayList<>(Arrays.asList("电阻率"));
    public static final List<String> TABLE_TITLE_DY = new ArrayList<>(Arrays.asList("电压"));

    /**
     * 设备搜索状态 0未完成 1完成
     */
    public static final Map<String, String> SYS_STATUS_WC_WWC = new LinkedHashMap<String, String>() {
        {
            put("0", "未完成");
            put("1", "完成");
        }
    };
    /**
     * 0:关闭 1:输出
     */
    public static final Map<String, String> SYS_STATUS_GB_SC = new LinkedHashMap<String, String>() {
        {
            put("0", "关闭");
            put("1", "输出");
        }
    };
    /**
     * 0:关闭 1:开启
     */
    public static final Map<String, String> SYS_STATUS_GB_KQ = new LinkedHashMap<String, String>() {
        {
            put("0", "关闭");
            put("1", "开启");
        }
    };
    /**
     * 正常 0不在线
     */
    public static final Map<String, String> SYS_STATUS_ZC_BZX = new LinkedHashMap<String, String>() {
        {
            put("0", "不在线");
            put("1", "正常");
        }
    };

    //磁芯通道名数据字典
    public static final String DEVICE_CX_NAMES="device_cx_names";
    //回流通道名数据字典
    public static final String DEVICE_HL_NAMES="device_hl_names";
    /**
     * 手动测试
     */
    public static Boolean SD_FLAG = true;

    public static String SD_CODE = "";
    //redis数据缓存
    public static final String DEVICE_VALUE = "device_value:";


}
